import java.util.ArrayList;

/**
 * 
 * @author Vit Terl
 *
 */
public class MoveList {
	private static MoveList instance;

	public static ArrayList<Mark> thelist;
	/**
	 * Konstruktor
	 */
	private MoveList() {
		thelist = new ArrayList<Mark>();
	}
	/**
	 * navrati instanci movelistu
	 * @return instance
	 */
	public static MoveList getInstance() {
		if (instance == null) {
			instance = new MoveList();
		}
		return instance;
	}
	/**
	 * 
	 * @return thelist
	 */
	public ArrayList<Mark> getAllMoves() {
		return thelist;
	}
	/**
	 * pridava tahy do listu
	 * @param a
	 */
	public void add(Mark a) {
		thelist.add(a);
	}
}